Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polish-css

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polish-css

A plugin-based linting tool for CSS. Make your stylesheets perfect. Add an extra coat of polish.

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

PolishCSS :nail_care:

  • Overview
  • Quick start
  • Installation
  • Resources
  • License

Overview

Spend less time reviewing pull requests. Make learning your rules simpler for new additions to the team. Keep your code more consistent and more reliable...

Or don't. You're the boss.

Play by your own rules with PolishCSS.

Features:

  • :nail_care: Totally unopinionated. No default linters.
  • :nail_care: Totally plugin based.
  • :nail_care: Totally named in honor of the nail polish emoji.

PolishCSS works with CSS, SCSS, Sass, and Less.

Quick start

Do this:

var polish = require('polish-css');

Then do this:

var stylesheet       = '#css { color: red; }',
    pathToStylesheet = '/path/to/stylesheet',
    pluginsToUse     = ['polish-plugin-no-styling-ids'],
    errors;

errors = polish(stylesheet, pathToStylesheet, { plugins: pluginsToUse });

polish.reporter(pathToStylesheet, errors);

Linters can be ignored on a per-ruleset basis using inline commenting:

/* polish no-styling-ids=false */
#wont-be-reported {
  color: pink;
}

Installation

Install from npm: npm install polish-css

If you want to use the CLI, install PolishCSS globally: npm install -g polish-css

Resources

License

This project is licensed under the terms of the MIT license.

FAQs

Package last updated on 27 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc